package com.csun.cmny.provider.service;

import com.csun.cmny.provider.pojo.CacBaseMinorItem;

import java.util.List;

public interface CacBaseMinorItemService {
    /**
     * 添加小项
     * author:liqian
     * date:2018-10-31 11:58
     */
    int insert(CacBaseMinorItem cacBaseMinorItem);

    /**
     * 根据小项id修改小项
     * author:liqian
     * date:2018-10-30 13:52
     */
    int update(CacBaseMinorItem cacBaseMinorItem);

    /**
     * 根据小项id查询小项
     * author:liqian
     * date:2018-10-30 13:55
     */
    CacBaseMinorItem selectCmiById(Integer minorItemId);

    /**
     * 根据小项id删除小项
     * author:liqian
     * date:2018-10-30 13:58
     */
    int delById(Integer minorItemId);

    /**
     * 根据CacBaseMinorItem查询CacBaseMinorItem
     * author:liqian
     * date:2018-10-31 13:18
     */
    CacBaseMinorItem selectByCmi(CacBaseMinorItem cacBaseMinorItem);

    /**
     * 根据大项id删除大项下面的小项
     * author:liqian
     * date:2018-10-31 14:47
     */
    int delByBid(Integer bigItemId);

    /**
     * 根据类别id删除小项
     * author:liqian
     * date:2018-10-31 15:54
     */
    int delByTypeId(Integer cacTypeId);
    /**
     * 批量添加小项
     * author:liqian
     * date:2018-11-23 10:26
     */
    int insertBatch(List<CacBaseMinorItem> cacBaseMinorItemList);
}
